package com.eissu.controller;

import com.eissu.service.UserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author eissu
 * @date 2020/5/31 22:06
 * @descript
 */
@RestController
public class OrderController {

    @Reference(check = false)
    private UserService userService;

    @GetMapping("/hello")
    public String hello(@RequestParam("name") String name){
        return userService.sayHello(name);
    }
}
